/*
 * @Version: 1.0
 * @Autor: yuchang
 * @Date: 2024-01-15 11:39:33
 * @LastEditors: yuchang
 * @LastEditTime: 2024-01-16 16:14:57
 * @Description:
 */
import IPConfig from '@/constants/IPConfig'
import networkRequest from '@/utils/network/XSRquest'

//查询组织结构
export async function getOrganization(params) {
  return networkRequest(`${IPConfig.projectIP}/leaderboard/campus/dept/treeList?`, params, 'get')
}
//新增组织
export async function addOrganization(params) {
  return networkRequest(`${IPConfig.projectIP}/leaderboard/campus/dept/save`, params, 'post')
}
//删除组织
export async function deleteOrganization(params) {
  return networkRequest(`${IPConfig.projectIP}/leaderboard/campus/dept/delete`, params, 'delete')
}
//修改组织
export async function putOrganization(params) {
  return networkRequest(`${IPConfig.projectIP}/leaderboard/campus/dept/update`, params, 'put')
}
